package com.lcy.reggie.service;

import com.lcy.reggie.common.Result;
import com.lcy.reggie.entity.AddressBook;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ChunBaBa_
* @description 针对表【address_book(地址管理)】的数据库操作Service
* @createDate 2023-01-17 16:11:41
*/
public interface AddressBookService extends IService<AddressBook> {

    Result<List<AddressBook>> listAddressBook();

    Result<String> saveAddress(AddressBook addressBook);

    Result<AddressBook> updateDefault(AddressBook addressBook);

    Result<AddressBook> selectById(Long id);

    Result<String> updateAddress(AddressBook addressBook);
}
